<%@ page language="java" contentType="text/html; charset=utf8"
	pageEncoding="utf8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%@include file="/resources/css/title.jsp"%>
<body onload="CheckForReload()">

<div class="wrapper">

<%@include file="/resources/css/header.jsp"%>

<%@include file="/resources/css/menu.jsp"%>

<center>
<table class="data_title">

	<tr class="data_title"><td>
        <h3><spring:message code="label.transactions_main"/>${accountNumber}</h3>
    </td></tr>
        <c:if test="${!empty transactionList}">
            <tr><td class="data_table">
                <table class="data">
                    <tr class="data_header">
                        <th class="data_header"><spring:message code="label.transaction_amount" /></th>
                        <th class="data_header"><spring:message code="label.transaction_account_amount" /></th>
                        <th class="data_header"><spring:message code="label.transaction_datetime" /></th>
                        <th class="data_header"><spring:message code="label.transaction_description" /></th>
                    </tr>
                    <c:forEach items="${transactionList}" var="transaction" varStatus="loopStatus">
                        <tr class="${loopStatus.index % 2 == 0 ? 'odd' : 'even'}">
                            <td class="data">${transaction.fullAmount}</td>
                            <td class="data">${transaction.fullAmountInAccountCur}</td>
                            <td class="data">${transaction.formattedDatetime}</td>
                            <td class="data">${transaction.description}</td>
                        </tr>
                    </c:forEach>
                </table>
            </td></tr>
        </c:if>
</table>
</center>

<div class="push"></div>
</div>

<%@include file="/resources/css/footer.jsp"%>

</body>
</html>


